package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.CompanyEvalDao;
import ex.com.jm.food.entity.Evaluation;
import ex.com.jm.food.service.CompanyEvalService;

public class CompanyEvalServiceImpl implements CompanyEvalService {

	private CompanyEvalDao companyEvalDao;
 	
	public CompanyEvalDao getCompanyEvalDao() {
		return companyEvalDao;
	}

	public void setCompanyEvalDao(CompanyEvalDao companyEvalDao) {
		this.companyEvalDao = companyEvalDao;
	}

	@Override
	public List<Evaluation> getEvaluations(int initPage, int pageRow,
			String comId, String menuName, Integer start, String s_date,
			String e_date, String order, String sort) {
		// TODO Auto-generated method stub
		return this.getCompanyEvalDao().getEvaluations(initPage, pageRow, comId, menuName, start, s_date, e_date, order, sort);
	}

	@Override
	public int evalCount(String comId, String menuName, Integer start,
			String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getCompanyEvalDao().evalCount(comId, menuName, start, s_date, e_date);
	}

}
